
package org.dracoufg.semanacalouro.beans;

import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import org.primefaces.model.map.DefaultMapModel;
import org.primefaces.model.map.LatLng;
import org.primefaces.model.map.MapModel;
import org.primefaces.model.map.Marker;

/**
 * 
 * @author allan
 */
@ManagedBean
@RequestScoped
public class MapBean implements Serializable{

    private MapModel mapModelINF;  
    private MapModel mapModelChurrascada;  
  
    public MapBean() {  
        mapModelINF = new DefaultMapModel();  
        mapModelChurrascada = new DefaultMapModel();
          
        //Coordenadas  
        LatLng coord1 = new LatLng(-16.603643, -49.262567);  
        LatLng coord2 = new LatLng(-16.603643, -49.262567);  
        
          
        //Marcadores  
        mapModelINF.addOverlay(new Marker(coord1, "Instituto de Informática da Universidade Federal de Goiás"));  
        mapModelChurrascada.addOverlay(new Marker(coord2, "Localização Churrascada"));   
    }  
  
    public MapModel getMapModelInf() {  
        return this.mapModelINF;  
    } 
    
    public MapModel getMapModelChurrascada() {
        return this.mapModelChurrascada;
    }
    
}

  
   
  